package cn.sdack.go.users.service;

import cn.sdack.go.common.entities.users.GroupEntity;

import java.util.List;

/**
 * @author sdack
 * @date 2024/2/11
 */
public interface GroupService {

    GroupEntity getById(Long id) throws Exception;


    List<Long> getPrincipal(String account) throws IllegalAccessException;

    void replacePrincipal(Long groupId,String principal) throws IllegalAccessException;

    GroupEntity add(GroupEntity param) throws Exception;

    GroupEntity set(GroupEntity param) throws Exception;

    void setStatus(Long gid , int state) throws Exception;
}
